<?php

class Application_Model_DbRow_Message
    extends Zend_Db_Table_Row_Abstract
    implements Zend_Acl_Resource_Interface
{
    public function getResourceId()
    {
        return 'message';
    }

    public function setCreatedBy(Application_Auth_User $user)
    {
        $this->user_token = $user->getAuthToken();
    }

    public function isCreatedBy(Application_Auth_User $user)
    {
        return $this->user_token == $user->getAuthToken();
    }
}